package org.chuan.auth.context;

import org.chuan.org.domain.Employee;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

public class LoginContext {

    public static final Map<String,Employee> context = new HashMap<>();

    public static Employee getEmployee(HttpServletRequest request){
        String token = request.getHeader("TOKEN");
        Employee employee = context.get(token);
        return employee;
    }

}
